/**
 * @Author DengJia
 * @Date 2021/8/14 17:59
 * @Description 可变参数列表的重载
 */

public class OverloadingVarargs {
    public static void main(String[] args) {
        f(1, 2, 3);
        f("1", "2", "3");
        /*
            Ambiguous method call. Both
            f(Integer...)
            in OverloadingVarargs and
            f(String...)
            in OverloadingVarargs match
         */
        // f();

//        m(1, 'a', 'b', 'c');
//        m('x', 'y');
//        m();
    }

    static void f(Integer... integers) {

    }

    static void f(String... strings) {

    }

    static void m(int i, Character... characters) {

    }

    static void m(Character... characters) {

    }
}
